package com.yangzehan.cn;


import com.yangzehan.config.ApiResponse;
import com.yangzehan.domain.XcxIndex;
import com.yangzehan.service.XcxIndexService;
import com.yangzehan.service.impl.XcxIndexServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/index/Basics")
public class index {
    @Autowired
  private XcxIndexServiceImpl xcxIndexService;
    @GetMapping("/test")
    public ApiResponse test(){
        List<XcxIndex> list = xcxIndexService.list();

        return ApiResponse.ok(list);
    }
}
